<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div id="allDiv">
		<input type="text" id="data" value="默认值"> <input type="button"
			id="send" οnclick="send();" value="传值给父窗口">
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
		<h1>弹出框</h1>
	</div>
</body>
<script type="text/javascript">
	function load() {
		// 设置滚动条
		var allDiv = document.getElementById("allDiv");
		allDiv.style.overflow = "auto";
	}
	function send() {
		var data = document.getElementById("data").value;
		window.parent.get(data);
	}
	window.onload = load;
</script>
</html>